* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', cursive, sans-serif;
    overflow: hidden;
    user-select: none;
}

#game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    background: linear-gradient(to bottom, #87CEEB 0%, #98D8E8 50%, #4682B4 100%);
}

/* 天气系统 */
#weather-system {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#weather-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#weather-info {
    position: absolute;
    top: 20px;
    left: 20px;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#weather-btn {
    background: #FF6B9D;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 15px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 12px;
    transition: all 0.3s ease;
}

#weather-btn:hover {
    background: #FF8FB3;
    transform: scale(1.05);
}

/* 游戏场景 */
#game-scene {
    width: 100%;
    height: 100%;
    position: relative;
}

#sky {
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, #87CEEB, #B0E0E6);
    position: relative;
}

/* 水面效果 */
#water {
    width: 100%;
    height: 40%;
    position: absolute;
    bottom: 0;
    background: linear-gradient(to bottom, #4682B4, #2F4F4F);
    overflow: hidden;
}

#water-surface {
    width: 100%;
    height: 20px;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0.1) 75%, 
        rgba(255, 255, 255, 0.3) 100%);
    animation: wave 3s ease-in-out infinite;
    position: absolute;
    top: 0;
}

@keyframes wave {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-20px); }
}

/* 钓鱼竿 */
#fishing-rod {
    position: absolute;
    bottom: 100px;
    right: 150px;
    transform-origin: bottom center;
    transition: transform 0.5s ease;
    z-index: 5;
}

#rod-handle {
    width: 8px;
    height: 80px;
    background: linear-gradient(to bottom, #8B4513, #A0522D);
    border-radius: 4px;
    position: relative;
}

#rod-body {
    width: 4px;
    height: 200px;
    background: linear-gradient(to bottom, #2F4F4F, #708090);
    border-radius: 2px;
    position: absolute;
    top: -200px;
    left: 2px;
}

/* 钓鱼线 */
#fishing-line {
    position: absolute;
    width: 2px;
    background: #000;
    right: 152px;
    bottom: 300px;
    height: 0;
    transition: height 0.8s ease;
    z-index: 4;
}

#hook {
    position: absolute;
    bottom: -10px;
    left: -3px;
    width: 8px;
    height: 8px;
    background: #C0C0C0;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* 鱼桶 */
#fish-bucket {
    position: absolute;
    bottom: 50px;
    left: 100px;
    width: 120px;
    height: 100px;
    z-index: 6;
}

#bucket-body {
    width: 100%;
    height: 80%;
    background: linear-gradient(to bottom, #8B4513, #A0522D);
    border-radius: 0 0 40px 40px;
    border: 3px solid #654321;
    position: relative;
}

#bucket-water {
    position: absolute;
    bottom: 5px;
    left: 5px;
    right: 5px;
    height: 20px;
    background: rgba(70, 130, 180, 0.7);
    border-radius: 0 0 35px 35px;
}

#caught-fish-container {
    position: absolute;
    bottom: 25px;
    left: 10px;
    right: 10px;
    height: 40px;
    overflow: hidden;
}

#bucket-label {
    position: absolute;
    top: -25px;
    left: 0;
    right: 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #2F4F4F;
}

/* 鱼类样式 */
.fish {
    position: absolute;
    width: 40px;
    height: 25px;
    border-radius: 50% 10px 50% 10px;
    animation: swim 4s linear infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.fish:hover {
    transform: scale(1.2);
}

.fish-common {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.fish-rare {
    background: linear-gradient(45deg, #FF69B4, #FF1493);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.7);
}

.fish-legendary {
    background: linear-gradient(45deg, #9370DB, #8A2BE2);
    box-shadow: 0 0 20px rgba(147, 112, 219, 0.8);
    animation: swim 4s linear infinite, glow 2s ease-in-out infinite alternate;
}

@keyframes swim {
    0% {
        transform: translateX(-100px) scaleX(1);
    }
    50% {
        transform: translateX(calc(100vw + 50px)) scaleX(1);
    }
    51% {
        transform: translateX(calc(100vw + 50px)) scaleX(-1);
    }
    100% {
        transform: translateX(-100px) scaleX(-1);
    }
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(147, 112, 219, 0.8); }
    to { box-shadow: 0 0 30px rgba(147, 112, 219, 1), 0 0 40px rgba(147, 112, 219, 0.5); }
}

/* 桶中的鱼 */
.bucket-fish {
    position: absolute;
    width: 20px;
    height: 12px;
    border-radius: 50% 5px 50% 5px;
    animation: float 2s ease-in-out infinite alternate;
}

@keyframes float {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

/* 游戏UI */
#game-ui {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 15;
}

#cast-button, #reel-button {
    background: linear-gradient(45deg, #FF6B9D, #FF8FB3);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

#cast-button:hover, #reel-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
}

#cast-button:active, #reel-button:active {
    transform: translateY(0);
}

#game-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    color: #2F4F4F;
}

#game-info div {
    margin-bottom: 5px;
}

/* 钓鱼提示 */
#catch-notification {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: white;
    padding: 20px 40px;
    border-radius: 20px;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
    animation: bounce 0.6s ease;
    z-index: 20;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, -50%) translateY(0); }
    40% { transform: translate(-50%, -50%) translateY(-10px); }
    60% { transform: translate(-50%, -50%) translateY(-5px); }
}

/* 钓竿动作动画 */
.casting {
    animation: cast 1s ease-in-out;
}

@keyframes cast {
    0% { transform: rotate(0deg); }
    30% { transform: rotate(-45deg); }
    60% { transform: rotate(15deg); }
    100% { transform: rotate(0deg); }
}

/* 天气效果 */
.rain-drop {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, transparent, #87CEEB);
    animation: rain-fall linear infinite;
}

@keyframes rain-fall {
    to {
        transform: translateY(100vh);
    }
}

.snow-flake {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: snow-fall linear infinite;
}

@keyframes snow-fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    animation: cloud-move 20s linear infinite;
}

.cloud:before {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
}

@keyframes cloud-move {
    from { transform: translateX(-200px); }
    to { transform: translateX(calc(100vw + 200px)); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    #fishing-rod {
        right: 50px;
        bottom: 80px;
    }
    
    #fish-bucket {
        left: 20px;
        bottom: 30px;
        transform: scale(0.8);
    }
    
    #game-ui {
        right: 10px;
        bottom: 10px;
    }
    
    #cast-button, #reel-button {
        padding: 12px 20px;
        font-size: 16px;
    }
}